package cn.com.pxto.service;

import java.util.List;

import cn.com.pxto.commons.pagesupport.PageInfo;
import cn.com.pxto.model.Contact;
import cn.com.pxto.model.Guest;

public interface GuestManager {
	public Guest getGust(int id);
	public void createGuest(Guest guest);
	public void updateGuest(Guest guest);
	public void deleteGuest(int id);
	public List<Guest> listGuest(int userId ,String sort ,PageInfo pageInfo);
	public List<Contact> listContact(int userId ,String sort ,PageInfo pageInfo);
	public List<Guest> getGuest(String sort,Object[] o,PageInfo pageInfo);
	public List<Contact> getContact(String sort,Object[] o,PageInfo pageInfo);
	public List<Guest> listGuestForDownload();
	
	public Contact getContact(int id);
	public List<Guest> getWeekGuest(String sort, Object[] o, PageInfo pageInfo);
	public List<Guest> getClassGuest(String sort, Object[] o, PageInfo pageInfo);
	List<Guest> getImportantTypeGuest(Object[] o, PageInfo pageInfo);
	
	/**
	 * 根据呼入电话呼叫用户
	 * @param tel
	 * @return
	 */
	public List<Contact> getContactByTelephone(String tel);
	
	
}
